package com.eedi.framework.mail.enums;

import com.eedi.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 邮件的发送状态枚举
 *
 * @author zybourn
 * @since 2022/4/10 13:39
 */
@Getter
@AllArgsConstructor
@ToString
public enum SysMailSendStatusEnum implements BaseEnum<Integer,String> {
    // 初始化
    INIT(0,"初始化"),
    // 发送成功
    SUCCESS(10,"发送成功"),
    // 发送失败
    FAILURE(20,"发送失败"),
    // 忽略，即不发送
    IGNORE(30,"忽略，即不发送")
    ;

    private final Integer status;
    private final String desc;


    @Override
    public Integer getCode() {
        return this.status;
    }
    @Override
    public String getDesc(){return this.desc;}

    @Override
    public String title() {
        return "邮件的发送状态";
    }


}
